package com.zzc.repository;

import com.zzc.domain.ProductInfor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.ArrayList;

public interface ProductInforRep extends JpaRepository<ProductInfor,Integer> {

    @Query(value = "select COVER from PRODUCTINFOR where PRODUCT_NAME = ?1",nativeQuery = true)
    String findByProductName(String productName);
}
